package com.neusoft.yiyang.care.client;

import com.neusoft.yiyang.common.entity.customer.Customer;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "customer-service")
public interface CustomerClient {

    // 根据客户ID获取客户姓名
    @GetMapping("/customers/{customerId}")
    Customer getCustomerById(@PathVariable("customerId") Integer customerId);
}